import request from '@/utils/request'

// 查询入职审批列表
export function listInduction(query) {
  return request({
    url: '/module/induction/list',
    method: 'get',
    params: query
  })
}

// 查询入职审批详细
export function getInduction(id) {
  return request({
    url: '/module/induction/' + id,
    method: 'get'
  })
}

// 新增入职审批
export function addInduction(data) {
  return request({
    url: '/module/induction',
    method: 'post',
    data: data
  })
}

// 修改入职审批
export function updateInduction(data) {
  return request({
    url: '/module/induction',
    method: 'put',
    data: data
  })
}

// 删除入职审批
export function delInduction(id) {
  return request({
    url: '/module/induction/' + id,
    method: 'delete'
  })
}
